home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / dev / amos / AMOS0398.lzh / AMOSLIST / 000067_amos-request@svcs1.digex.net_Fri Mar 6 19:48:57 1998.msg < prev    next >
Text File  |  1998-04-01  |  4KB  |  82 lines

  1. >From amos-request@svcs1.digex.net  Fri Mar  6 19:48:57 1998
  2. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  3.     by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id TAA17943
  4.     for <mcox@access.digex.net>; Fri, 6 Mar 1998 19:48:57 -0500 (EST)
  5. Received: (from daemon@localhost)
  6.     by svcs1.digex.net (8.8.5/8.8.5) id NAA15280
  7.     for amos-out; Fri, 6 Mar 1998 13:52:50 -0500 (EST)
  8. Received: from pony-2.mail.digex.net (pony-2.mail.digex.net [204.91.241.6])
  9.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id NAA15277
  10.     for <amos-list@svcs1.digex.net>; Fri, 6 Mar 1998 13:52:49 -0500 (EST)
  11. Received: from mail-in1.inet.tele.dk (mail-in1.inet.tele.dk [194.182.148.158])
  12.     by pony-2.mail.digex.net (8.8.8/8.8.8) with SMTP id NAA04724
  13.     for <amos-list@access.digex.net>; Fri, 6 Mar 1998 13:52:44 -0500 (EST)
  14. Received: (qmail 7885 invoked from network); 6 Mar 1998 18:52:37 -0000
  15. Received: from post8.tele.dk (194.239.134.172)
  16.   by mail-in1.inet.tele.dk with SMTP; 6 Mar 1998 18:52:37 -0000
  17. Received: from post8.tele.dk ([194.239.180.44]) by post8.tele.dk
  18.           (Netscape Mail Server v2.02) with SMTP id AAA51648;
  19.           Fri, 6 Mar 1998 19:52:33 +0100
  20. From: Jens Vang Petersen <top_cat@post8.tele.dk>
  21. To: Magnus.Sjoberg@asdo.se, amos-list@access.digex.net
  22. Date: Fri, 06 Mar 1998 14:11:51 +0100
  23. Message-ID: <yam7369.2582.1748608312@post8.tele.dk>
  24. In-Reply-To: <0C16986DE489D111860D00A024A419070E22C1@G02_STHLEX.asdo.se>
  25. X-Mailer: YAM 2.0.0 Preview [020] - Amiga Mailer by Marcel Beck - http://www.yam.ch
  26. Subject: Re: SV: A small Hint..
  27. MIME-Version: 1.0
  28. Content-Type: text/plain
  29. Status: O
  30. X-Status: 
  31.  
  32. On 06-Mar-98, Magnus.Sjoberg@asdo.se smashed the keyboard with:
  33. >> 's a little trick I found the other day, hope somebody can
  34. > use it..
  35. >> store an integer-array you would normaly open a sequentiel
  36. > file and dump
  37. >> data with a loop.. Well try this instead:
  38. >> =50
  39. >> A(MX)
  40. >> -
  41. >> FILE$,Varptr(A(0)) To Varptr(A(0))+(MX+1)*4
  42. >> 
  43. >> to reload:
  44. >> FILE$,Varptr(A(0))
  45. >> 
  46. >> can simply replace Bsave with Ssave if you'd like to have
  47. > more than one
  48. >> in a file. Or use Copy to put in a bank :)
  49. >     Thanx for the tip. It's just what I need.
  50. >     Loop-storing/reading are so slow when it comes to bigger files.
  51. >     But how about big numbers and strings? I sence a bit of trouble
  52. > here...
  53.  
  54. Strings don't work :(
  55. All regular integer-arrays work (A(n), B(n)) etc.. With a little change it
  56. is possible to use multi-dimension arrays. The (MX+1) should just be changed
  57. to the number of elements in the array, so if you have a Dim A(6,6) then the
  58. (MX+1) is changed to (7*7) element 0 is the first, resulting in 7 in each 
  59. dimension..
  60.  
  61. Integer holds numbers from -$80000000 -> $7FFFFFFF wich equals to 
  62. -2.147.483.648 -> 2.147.483.647, if you'd like to use floating numbers like
  63. A#(n) then the *4 is changed to the length of each element in the floating
  64. set (Still *4 if you're using Single/Fast float, but *8 if you are using
  65. Double Precision numbers..).. 
  66.  
  67. -- 
  68. Kind regards from
  69. ______________________________________________________________________________
  70.  /_  __/ __  / __  /\  ___\  __ \__  _\               aka. JENS VANG PETERSEN
  71.   / / / /_/ / ____/  \ \___\  __ \ \ \                  top_cat@post8.tele.dk
  72.  /_/ /_____/_/        \_____\_\ \_\ \_\
  73. ------------------------------------------------------------------------------
  74.                     http://home8.inet.tele.dk/top_cat/
  75.   -+-    Home of 'The Ultimate Extension list' for AMOS TC & AMOS PRO    -+-
  76.                  -+-  SUPPORT - AMOS - AMIGA - AQUA  -+-
  77. ------------------------------------------------------------------------------
  78.  Hardware:  The parts of a computer system that can be kicked.
  79. ------------------------------------------------------------------------------
  80.